<?php

namespace App\Http\Controllers;




use App\Http\Service\Impl\MembersImpl;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class MembersController extends Controller
{
    private $Membersservice;
    public function __construct()
    {
        $this->Membersservice = new MembersImpl();
    }

    /**
     * @return 用户列表视图
     */
    public function  view_memberslist(){
        return view("Members.memberslist");
    }

    public function memberslist(Request $request){
        return $this->Membersservice->memberslist($request);
    }

    public function removeuser(Request $request){
        $this->Membersservice->removeuser($request);
    }

    /**
     * @param Request $request
     * 获取用户的个人信息
     */
    public function getuserinfo(Request $request){
        return $this->Membersservice->getuserinfo($request);
    }

    public function updateuserinfo(Request $request){
        return $this->Membersservice->updateuserinfo($request);
    }

}
